<?php
declare(strict_types=1);

namespace app\api\service;
use app\common\service\BaseService;
use app\store\model\ProtocolDoc;


/**
 * 用户协议
 */
class Protocol extends BaseService
{
    public function getDetail($key){
        $row = ProtocolDoc::where('key', $key)->find();
        return $row->toArray() ?? [];
    }


}